package pers.duorhs.common.socket.service;

import pers.duorhs.common.socket.SocketData;

/**
 * @author Duorhs
 * @date 2022/5/9 9:32
 */
public interface AppSocketService {
    /**
     * 客户登录
     *
     * @param customer
     */
    void login(String customer);

    /**
     * 给坐席端推送消息
     *
     * @param customer
     * @param msg
     */
    void push(String customer, String msg);

    /**
     * 结束业务
     *
     * @param customer
     */
    void end(String customer);

    /**
     * 推送信息到App前端
     *
     * @param socketData
     */
    void pushToAppClient(SocketData<String> socketData);
}
